package com.example.aerospacemanagementsystem.service.basicService.impl;

import com.example.aerospacemanagementsystem.entity.basic.Menu;
import com.example.aerospacemanagementsystem.entity.basic.Menu;
import com.example.aerospacemanagementsystem.mapper.basicMapper.MenuMapper;
import com.example.aerospacemanagementsystem.service.basicService.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 铁殷
* @description 针对表【menu】的数据库操作Service实现
* @createDate 2023-10-20 14:12:16
*/
@Service
public class MenuServiceImpl implements MenuService{

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public int add(Menu menu) {
        return menuMapper.insert(menu);
    }

    @Override
    public int delete(Menu menu) {
        return menuMapper.delete(menu);
    }

    @Override
    public int update(Menu menu) {
        return menuMapper.update(menu);
    }

    @Override
    public List<Menu> getAllMenu(Menu menu) {
        return menuMapper.getAllMenu(menu);
    }
}




